import 'package:flutter/material.dart';
import 'package:flutter_levin/ui/weight/app_toolbar.dart';
import 'package:flutter_levin/ui/weight/dialog_notify.dart';
import 'package:flutter_levin/ui/weight/dialog_picker.dart';

class MinePage extends StatefulWidget {
  const MinePage({Key? key}) : super(key: key);

  @override
  State<StatefulWidget> createState() {
    return _MinePageState();
  }
}

class _MinePageState extends State<MinePage>
    with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Scaffold(
      appBar: const ToolBar(
        title: '个人中心',
        visibilityLeft: false,
      ),
      body: Center(
        child: TextButton(
          child: const Text('日期弹窗'),
          onPressed: () {
            showCustomerDatePicker(
                context: context,
                onDateSelected: (date) {
                  showToast(date.toString());
                });
          },
        ),
      ),
    );
  }
}
